<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Partners/index')}">合作管理</a></li>
			<li><a href="{:U('Partners/add')}">添加合作</a></li>
		</ul>
		<!--<form class="well form-search" method="post" action="{:U('AdminPage/index')}">-->
			<!--{:L('POST_DATE')}-->
			<!--<input type="text" name="start_time" class="js-datetime" value="{$formget.start_time|default=''}" style="width: 120px;" autocomplete="off">- -->
			<!--<input autocomplete="off" type="text" class="js-datetime" name="end_time" value="{$formget.end_time|default=''}" style="width: 120px;"> {:L('KEYWORD')}-->
			<!--<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword|default=''}" placeholder="{:L('PLEASE_ENTER_KEYWORD')}">-->
			<!--<button class="btn btn-primary">{:L('SEARCH')}</button>-->
			<!--<a class="btn btn-danger" href="{:U('AdminPage/index')}">清空</a>-->
		<!--</form>-->
		<form class="js-ajax-form" method="post">
			<div class="table-actions">
				<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Partners/delete')}" data-subcheck="true" data-msg="{:L('DELETE_CONFIRM_MESSAGE')}">{:L('DELETE')}</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<th width="100">ID</th>
						<th width="120">图片</th>
						<!-- <th>点击量</th> -->
						<th>描述</th>
						<th width="80"><span>标题</span></th>
						<!--<th width="80"><span>位置</span></th>-->
						<th width="80"><span>创建时间</span></th>
						<th width="120">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<foreach name="result" item="vo">
				<tr>
					<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
					<td><a>{$vo.id}</a></td>
					<td><img src="{:sp_get_image_url($vo['img'])}" alt="" style="width: 100%;"></td>
					<!--  <td>0</td> -->
					<td>{$vo.text}</td>
					<td>{$vo.title}</td>
					<!--<td>{$vo.type}</td>-->
					<td>{$vo.createtime}</td>
					<td>
						<a href="{:U('Partners/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a>|
						<a href="{:U('Partners/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
					</td>
				</tr>
				</foreach>
				<tfoot>
					<tr>
						<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<th width="100">ID</th>
						<th>图片</th>
						<!-- <th>点击量</th> -->
						<th width="120">描述</th>
						<th width="80"><span>标题</span></th>
						<!--<th width="80"><span>位置</span></th>-->
						<th width="80"><span>创建时间</span></th>
						<th width="120">{:L('ACTIONS')}</th>
					</tr>
				</tfoot>
			</table>
			<div class="table-actions">
				<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Partners/delete')}" data-subcheck="true" data-msg="你确定删除吗？">{:L('DELETE')}</button>
			</div>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		setCookie('refersh_time', 0);
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location.reload();
			}
		}
		setInterval(function() {
			refersh_window()
		}, 2000);
	</script>
</body>
</html>